//
//  GCW_SingerCollectionViewCell.m
//  MooMusic
//
//  Created by 管晨雯 on 15/10/21.
//  Copyright © 2015年 wjy. All rights reserved.
//

#import "GCW_SingerCollectionViewCell.h"
#import "PrefixHeader.pch"
@implementation GCW_SingerCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    
    if (self) {
        
        self.bigView = [[UIView alloc]init];
        [self.contentView addSubview:self.bigView];
        
        self.photoImageView = [[UIImageView alloc]init];
        [self.bigView    addSubview:self.photoImageView];
        
        self.typeLabel = [[UILabel alloc]init];
        [self.bigView addSubview:self.typeLabel];
        
    }
    
    return self;
}


- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    self.bigView.frame = CGRectMake(10 * WIDTH, 5 * HEIGH, 300 * WIDTH, 460 * HEIGH);
    
    self.bigView.backgroundColor = [UIColor  whiteColor];
    self.bigView.layer.cornerRadius = 15;
    self.bigView.layer.masksToBounds = YES;
    
    
    
    
    self.photoImageView.frame = CGRectMake(20 * WIDTH, 20 * HEIGH, 260 * WIDTH, 360 * HEIGH);
//    self.photoImageView.backgroundColor = [UIColor orangeColor];
    self.photoImageView.layer.cornerRadius = 10;
    self.photoImageView.layer.masksToBounds = YES;
    
    
    self.typeLabel.frame = CGRectMake(50 * WIDTH, 410 * HEIGH, 200 * WIDTH, 40 * HEIGH);
//    self.typeLabel.backgroundColor = [UIColor cyanColor];
    self.typeLabel.layer.cornerRadius = 5;
    self.typeLabel.layer.masksToBounds = YES;
    self.typeLabel.textAlignment =  NSTextAlignmentCenter;
    
    
}


@end
